<?php


namespace App\Entity\Admin;


use App\Entity\BaseEntity;

/**
 * Class ChangePasswordDto
 * @package App\Entity\Admin
 * @property string $oldPassword
 * @property string $newPassword
 */
class ChangePasswordDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            'oldPassword' => 'required',
            'newPassword' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'oldPassword.required' => '请输入原密码',
            'newPassword.required' => '请输入新密码',
        ];
    }
}
